package com.example.demo.controller;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Aspect
@Order(2)
@Component
public class SystemLogAspectBak {
	
	
	@Pointcut("execution (* org.slf4j.Logger.*(..))")
	public void controllerAnnotationPointcut() {
	}
	
	
	@Around("controllerAnnotationPointcut()")
	public Object log(ProceedingJoinPoint pjp) throws Throwable {
		System.out.println("ProceedingJoinPoint=================================================");
		
		return pjp.proceed();
		
	}
	
}
